package model

import (
	"github.com/shopspring/decimal"
	"time"
)

type ShopTrend struct {
	ShopId               uint            `json:"shop_id" bson:"shop_id"`
	Date                 time.Time       `json:"date" bson:"date"`
	SortDate             time.Time       `json:"sort_date" bson:"sort_date"`
	OvertimeRate         decimal.Decimal `json:"overtime_rate" bson:"overtime_rate"`
	CtmOrderViewRate     decimal.Decimal `json:"ctm_order_view_rate" bson:"ctm_order_view_rate"`
	PerCustomerValue     decimal.Decimal `json:"per_customer_value" bson:"per_customer_value"`
	ViewItemVerifiedRate decimal.Decimal `json:"view_item_verified_rate" bson:"view_item_verified_rate"`
	ItemVerifiedUsd      float64         `json:"item_verified_usd" bson:"item_verified_usd"`
	TotalSettleAmount    float64         `json:"total_settle_amount" bson:"total_settle_amount"`
	OvertimeSettleAmount float64         `json:"overtime_settle_amount" bson:"overtime_settle_amount"`
	CtmItemViewUv        int             `json:"ctm_item_view_uv" bson:"ctm_item_view_uv"`
	OrderBuyerCnt        int             `json:"order_buyer_cnt" bson:"order_buyer_cnt"`
	CtmItemViewPv        int             `json:"ctm_item_view_pv" bson:"ctm_item_view_pv"`
	CtmItemViewItemCnt   int             `json:"ctm_item_view_item_cnt" bson:"ctm_item_view_item_cnt"`
	ItemVerifiedCnt      int             `json:"item_verified_cnt" bson:"item_verified_cnt"`
	ItemVerifiedUv       int             `json:"item_verified_uv" bson:"item_verified_uv"`
}

type ShopTrendCompare struct {
	ShopId                      uint            `json:"shop_id" bson:"shop_id"`
	ItemVerifiedUsd             float64         `json:"item_verified_usd" bson:"item_verified_usd"`
	TotalSettleAmount           float64         `json:"total_settle_amount" bson:"total_settle_amount"`
	OvertimeSettleAmount        float64         `json:"overtime_settle_amount" bson:"overtime_settle_amount"`
	CtmItemViewUv               int             `json:"ctm_item_view_uv" bson:"ctm_item_view_uv"`
	OrderBuyerCnt               int             `json:"order_buyer_cnt" bson:"order_buyer_cnt"`
	CtmItemViewPv               int             `json:"ctm_item_view_pv" bson:"ctm_item_view_pv"`
	CtmItemViewItemCnt          int             `json:"ctm_item_view_item_cnt" bson:"ctm_item_view_item_cnt"`
	ItemVerifiedCnt             int             `json:"item_verified_cnt" bson:"item_verified_cnt"`
	ItemVerifiedUv              int             `json:"item_verified_uv" bson:"item_verified_uv"`
	OvertimeRate                decimal.Decimal `json:"overtime_rate" bson:"overtime_rate"`
	CtmOrderViewRate            decimal.Decimal `json:"ctm_order_view_rate" bson:"ctm_order_view_rate"`
	PerCustomerValue            decimal.Decimal `json:"per_customer_value" bson:"per_customer_value"`
	ViewItemVerifiedRate        decimal.Decimal `json:"view_item_verified_rate" bson:"view_item_verified_rate"`
	CompareOvertimeRate         decimal.Decimal `json:"compare_overtime_rate"`
	CompareCtmOrderViewRate     decimal.Decimal `json:"compare_ctm_order_view_rate"`
	ComparePerCustomerValue     decimal.Decimal `json:"compare_per_customer_value"`
	CompareItemVerifiedUsd      decimal.Decimal `json:"compare_item_verified_usd"`
	CompareViewItemVerifiedRate decimal.Decimal `json:"compare_view_item_verified_rate"`
	CompareTotalSettleAmount    decimal.Decimal `json:"compare_total_settle_amount"`
	CompareOvertimeSettleAmount decimal.Decimal `json:"compare_overtime_settle_amount"`
	CompareCtmItemViewUv        decimal.Decimal `json:"compare_ctm_item_view_uv"`
	CompareOrderBuyerCnt        decimal.Decimal `json:"compare_order_buyer_cnt"`
	CompareCtmItemViewPv        decimal.Decimal `json:"compare_ctm_item_view_pv"`
	CompareCtmItemViewItemCnt   decimal.Decimal `json:"compare_ctm_item_view_item_cnt"`
	CompareItemVerifiedCnt      decimal.Decimal `json:"compare_item_verified_cnt"`
	CompareItemVerifiedUv       decimal.Decimal `json:"compare_item_verified_uv"`
}
